using System;
using System.Windows.Controls;

namespace WizardSample
{
    /// <summary>
    /// 
    /// </summary>
    public partial class __WizardPage : WizardPageBase
    {
        public __WizardPage()
        {
            InitializeComponent();
        }

        public override void BindToData(Object contextData)
        {
            AuthenticationWizardData wizardData = contextData as AuthenticationWizardData;

            // Bind wizard data
            if (wizardData != null)
            {
                this.DataContext = wizardData;
                this.ctrl_IisSiteList.ItemsSource = wizardData.IISSiteList;
                this.ctrl_IisSiteList.DisplayMemberPath = "IISSite";
                this.ctrl_IisSiteList.SelectedValuePath = "IISSiteId";
                this.ctrl_IisSiteList.SelectedIndex = wizardData.IISSiteItem;
            }
        }

    }
}
